function ShowBurstAd(adcode, width, height, sizes, intrusive, bgcolor, background) {
var bN = navigator.appName;
var bV = parseInt(navigator.appVersion);
var base='http://www.burstnet.com/';
var Tv=''; var Itr='';
var sz=''; var bkgd='';
var bgc=''; var rfr='';
var vr='v=1.0J';
var agt=navigator.userAgent.toLowerCase();
if (sizes.length!=0) {sz='/sz='+sizes;} else {sz='';}
if (bgcolor.length!=0) {bgc='/zg' + bgcolor;} else {bgc='';}
if (background.length!=0) {bkgd='/bgi='+(escape(escape(background))).replace(/\//gi,'%252F');} else {bkgd='';}
rfr='/r='+(escape(escape(top.location.href))).replace(/\//gi,'%252F');
if (bV>=4) {
ts=window.location.pathname+window.location.search;
i=0; Tv=0; while (i< ts.length)
{ Tv=Tv+ts.charCodeAt(i); i=i+1; } Tv="/"+Tv;
} else {Tv=escape(window.location.pathname);
if( Tv.charAt(0)!='/' ) Tv="/"+Tv;
else if (Tv.charAt(1)=="/")
Tv="";
if( Tv.charAt(Tv.length-1) == "/")
Tv = Tv + "_";
}
var fCode='';
var gCode = '<'+'a href="'+base+'ads/'+adcode+'-map.cgi/'+
vr+sz+rfr+Tv+'" target=_top>';
var fCodeEnd = '';
if ((adcode.charAt(0)=="a")&&(intrusive=="1")) {
Itr='';
}
if (agt.indexOf("mac")==-1) {
document.write(fCode+gCode+fCodeEnd+Itr);
} else {
document.write(gCode);
}
}
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (2 < argc) ? argv[2] : null;
var path = (3 < argc) ? argv[3] : null;
var domain = (4 < argc) ? argv[4] : null;
var secure = (5 < argc) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DisplayInfo() {
var expdate = new Date();
var visit;
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
if(!(visit = GetCookie("visit")))
visit = 0;
visit++;
SetCookie("visit", visit, expdate, "/", ".online-literature.com", false);
var message;
if(visit == 1)
popup()
}
function DisplayInfo1() {
var expdate = new Date();
var visit;
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
if(!(visit = GetCookie("visit")))
visit = 0;
visit++;
SetCookie("visit", visit, expdate, "/", ".online-literature.com", false);
var message;
if(visit == 10)
popup1()
}
function popup(){
window.open('http://www.online-literature.com/popup.php3','win1','width=400,height=170,resizable,top=300,left=350,screenX=350,screenY=300')
}
function popup1(){
window.open('http://www.online-literature.com/survey.htm','win2','width=400,height=170,resizable')
}